package com.yinlixian.frame.admin.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;


/**
 * <p>
 * 资源信息
 * </p>
 *
 * @author yudm
 * @since 2017-03-01
 */
@TableName("sys_resource")
public class SysResource extends BaseEntity<SysResource> {

    private static final long serialVersionUID = 1L;

    /**
     * 资源主键
     */
	@TableId("resorce_id")
	private Integer resorceId;
    /**
     * 上级ID
     */
	@TableField("parent_rcid")
	private Integer parentRcid;
    /**
     * 编码
     */
	private String code;
    /**
     * 标题
     */
	private String title;
    /**
     * 类型
     */
	private Integer type;
    /**
     * 地址
     */
	private String url;
    /**
     * 图标
     */
	private String icon;
    /**
     * 描述
     */
	private String description;


	public Integer getResorceId() {
		return resorceId;
	}

	public void setResorceId(Integer resorceId) {
		this.resorceId = resorceId;
	}

	public Integer getParentRcid() {
		return parentRcid;
	}

	public void setParentRcid(Integer parentRcid) {
		this.parentRcid = parentRcid;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	protected Serializable pkVal() {
		return this.resorceId;
	}

}
